import { createRouter,createWebHistory} from "vue-router";
import Home from "@/views/HomeView.vue";
import Learning from '@/views/learning/index.vue' // 你的学习页面组件路径

//导入组件

//定义路由关系
const routes=[
    {path:'/',name:'Home',component:Home},
    {path:'/learning',name:'Learning',component:Learning},
]

//创建路由器
const router = createRouter({
    history:createWebHistory(),
    routes,
})

//导出路由
export default router